home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / text / html / HTMLDocument$HTMLReader$StyleAction.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  1.4 KB  |  37 lines

  1. package javax.swing.text.html;
  2.  
  3. import java.util.Vector;
  4. import javax.swing.text.MutableAttributeSet;
  5. import javax.swing.text.html.HTML.Attribute;
  6.  
  7. class HTMLDocument$HTMLReader$StyleAction extends HTMLDocument.HTMLReader.TagAction {
  8.    // $FF: synthetic field
  9.    private final HTMLDocument.HTMLReader this$1;
  10.  
  11.    HTMLDocument$HTMLReader$StyleAction(HTMLDocument.HTMLReader var1) {
  12.       super(var1);
  13.       this.this$1 = var1;
  14.    }
  15.  
  16.    public void end(HTML.Tag var1) {
  17.       this.this$1.inStyle = false;
  18.    }
  19.  
  20.    boolean isEmpty(HTML.Tag var1) {
  21.       return false;
  22.    }
  23.  
  24.    public void start(HTML.Tag var1, MutableAttributeSet var2) {
  25.       if (this.this$1.inHead) {
  26.          if (this.this$1.styles == null) {
  27.             this.this$1.styles = new Vector(3);
  28.          }
  29.  
  30.          this.this$1.styles.addElement(var1);
  31.          this.this$1.styles.addElement(var2.getAttribute(Attribute.TYPE));
  32.          this.this$1.inStyle = true;
  33.       }
  34.  
  35.    }
  36. }
  37.